package com.study.modules.saas.controller;

import com.study.Util.CommonResponse;
import com.study.modules.saas.repository.model.OrderDO;
import com.study.modules.saas.service.OrderService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Slf4j
@RestController
@RequestMapping("sa/orders")
public class SaasOrderController {

    @Autowired
    OrderService orderService;

    @GetMapping()
    public CommonResponse getOrder(){
        List<OrderDO> orderList = orderService.getOrderList();
        return CommonResponse.success();
    }

}
